package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DesignerProjectItemsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DesignerProjectItemsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DesignerProjectItemsExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DesignerProjectItemsExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DesignerProjectItemsExample example = new DesignerProjectItemsExample();
        return example.createCriteria();
    }

    public DesignerProjectItemsExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DesignerProjectItemsExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DesignerProjectItemsExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DesignerProjectItemsExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DesignerProjectItemsExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andItemsIdIsNull() {
            addCriterion("designerprojectitems.ItemsId is null");
            return (Criteria) this;
        }

        public Criteria andItemsIdIsNotNull() {
            addCriterion("designerprojectitems.ItemsId is not null");
            return (Criteria) this;
        }

        public Criteria andItemsIdEqualTo(Integer value) {
            addCriterion("designerprojectitems.ItemsId =", value, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ItemsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andItemsIdNotEqualTo(Integer value) {
            addCriterion("designerprojectitems.ItemsId <>", value, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ItemsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andItemsIdGreaterThan(Integer value) {
            addCriterion("designerprojectitems.ItemsId >", value, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ItemsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andItemsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.ItemsId >=", value, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ItemsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andItemsIdLessThan(Integer value) {
            addCriterion("designerprojectitems.ItemsId <", value, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ItemsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andItemsIdLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.ItemsId <=", value, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ItemsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andItemsIdIn(List<Integer> values) {
            addCriterion("designerprojectitems.ItemsId in", values, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdNotIn(List<Integer> values) {
            addCriterion("designerprojectitems.ItemsId not in", values, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.ItemsId between", value1, value2, "itemsId");
            return (Criteria) this;
        }

        public Criteria andItemsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.ItemsId not between", value1, value2, "itemsId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("designerprojectitems.UserId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("designerprojectitems.UserId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("designerprojectitems.UserId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("designerprojectitems.UserId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("designerprojectitems.UserId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.UserId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("designerprojectitems.UserId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.UserId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("designerprojectitems.UserId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("designerprojectitems.UserId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.UserId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.UserId not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("designerprojectitems.ProjectId is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("designerprojectitems.ProjectId is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("designerprojectitems.ProjectId =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ProjectId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("designerprojectitems.ProjectId <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ProjectId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("designerprojectitems.ProjectId >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ProjectId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.ProjectId >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ProjectId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("designerprojectitems.ProjectId <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ProjectId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.ProjectId <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.ProjectId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("designerprojectitems.ProjectId in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("designerprojectitems.ProjectId not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.ProjectId between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.ProjectId not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("designerprojectitems.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("designerprojectitems.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("designerprojectitems.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("designerprojectitems.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("designerprojectitems.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("designerprojectitems.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("designerprojectitems.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("designerprojectitems.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("designerprojectitems.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("designerprojectitems.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("designerprojectitems.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("designerprojectitems.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andPositionDescrIsNull() {
            addCriterion("designerprojectitems.PositionDescr is null");
            return (Criteria) this;
        }

        public Criteria andPositionDescrIsNotNull() {
            addCriterion("designerprojectitems.PositionDescr is not null");
            return (Criteria) this;
        }

        public Criteria andPositionDescrEqualTo(String value) {
            addCriterion("designerprojectitems.PositionDescr =", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.PositionDescr = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPositionDescrNotEqualTo(String value) {
            addCriterion("designerprojectitems.PositionDescr <>", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.PositionDescr <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPositionDescrGreaterThan(String value) {
            addCriterion("designerprojectitems.PositionDescr >", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.PositionDescr > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPositionDescrGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.PositionDescr >=", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.PositionDescr >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPositionDescrLessThan(String value) {
            addCriterion("designerprojectitems.PositionDescr <", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.PositionDescr < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPositionDescrLessThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.PositionDescr <=", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.PositionDescr <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPositionDescrLike(String value) {
            addCriterion("designerprojectitems.PositionDescr like", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrNotLike(String value) {
            addCriterion("designerprojectitems.PositionDescr not like", value, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrIn(List<String> values) {
            addCriterion("designerprojectitems.PositionDescr in", values, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrNotIn(List<String> values) {
            addCriterion("designerprojectitems.PositionDescr not in", values, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrBetween(String value1, String value2) {
            addCriterion("designerprojectitems.PositionDescr between", value1, value2, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andPositionDescrNotBetween(String value1, String value2) {
            addCriterion("designerprojectitems.PositionDescr not between", value1, value2, "positionDescr");
            return (Criteria) this;
        }

        public Criteria andSortingIsNull() {
            addCriterion("designerprojectitems.Sorting is null");
            return (Criteria) this;
        }

        public Criteria andSortingIsNotNull() {
            addCriterion("designerprojectitems.Sorting is not null");
            return (Criteria) this;
        }

        public Criteria andSortingEqualTo(Integer value) {
            addCriterion("designerprojectitems.Sorting =", value, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Sorting = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSortingNotEqualTo(Integer value) {
            addCriterion("designerprojectitems.Sorting <>", value, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Sorting <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSortingGreaterThan(Integer value) {
            addCriterion("designerprojectitems.Sorting >", value, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Sorting > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSortingGreaterThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.Sorting >=", value, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Sorting >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSortingLessThan(Integer value) {
            addCriterion("designerprojectitems.Sorting <", value, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Sorting < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSortingLessThanOrEqualTo(Integer value) {
            addCriterion("designerprojectitems.Sorting <=", value, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Sorting <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSortingIn(List<Integer> values) {
            addCriterion("designerprojectitems.Sorting in", values, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingNotIn(List<Integer> values) {
            addCriterion("designerprojectitems.Sorting not in", values, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.Sorting between", value1, value2, "sorting");
            return (Criteria) this;
        }

        public Criteria andSortingNotBetween(Integer value1, Integer value2) {
            addCriterion("designerprojectitems.Sorting not between", value1, value2, "sorting");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("designerprojectitems.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("designerprojectitems.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("designerprojectitems.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("designerprojectitems.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("designerprojectitems.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("designerprojectitems.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("designerprojectitems.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("designerprojectitems.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("designerprojectitems.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("designerprojectitems.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("designerprojectitems.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("designerprojectitems.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("designerprojectitems.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("designerprojectitems.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("designerprojectitems.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("designerprojectitems.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("designerprojectitems.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("designerprojectitems.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("designerprojectitems.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("designerprojectitems.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("designerprojectitems.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("designerprojectitems.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("designerprojectitems.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("designerprojectitems.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("designerprojectitems.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("designerprojectitems.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("designerprojectitems.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("designerprojectitems.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("designerprojectitems.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("designerprojectitems.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("designerprojectitems.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("designerprojectitems.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("designerprojectitems.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("designerprojectitems.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("designerprojectitems.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("designerprojectitems.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("designerprojectitems.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("designerprojectitems.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("designerprojectitems.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("designerprojectitems.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("designerprojectitems.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("designerprojectitems.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("designerprojectitems.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("designerprojectitems.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("designerprojectitems.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("designerprojectitems.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("designerprojectitems.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("designerprojectitems.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("designerprojectitems.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("designerprojectitems.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("designerprojectitems.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("designerprojectitems.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("designerprojectitems.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("designerprojectitems.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("designerprojectitems.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("designerprojectitems.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("designerprojectitems.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DesignerProjectItemsWithBLOBs.Column column) {
            addCriterion(new StringBuilder("designerprojectitems.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("designerprojectitems.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("designerprojectitems.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("designerprojectitems.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("designerprojectitems.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DesignerProjectItemsExample example;

        protected Criteria(DesignerProjectItemsExample example) {
            super();
            this.example = example;
        }

        public DesignerProjectItemsExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DesignerProjectItems.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DesignerProjectItems.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.DesignerProjectItemsExample example);
    }
}